/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSky.matcher.builder.major;

import ru.jSky.interfaces.Major;
import ru.jSky.matcher.builder.ObjectMatcherBuilder;
import ru.jSky.matcher.builder.StringMatcherBuilder;
import ru.jSky.producer.builder.major.MajorProducerBuilder;

/**
 *
 * @author Rakev
 */
public class MajorMatcherBuilder<F, C extends Major> extends ObjectMatcherBuilder<F, C> {

    public MajorMatcherBuilder(MajorProducerBuilder<F, C> producerBuilder) {
        super(producerBuilder);
    }

    public StringMatcherBuilder<F, String> edid() {
        return new StringMatcherBuilder<>(getProducerBuilder().edid());
    }

    @Override
    protected MajorProducerBuilder<F, C> getProducerBuilder() {
        return (MajorProducerBuilder<F, C>) super.getProducerBuilder(); //To change body of generated methods, choose Tools | Templates.
    }
}
